'use strict';
/*
 *@description: 添加列表对象
 *@author: wudandan
 *@date: 2020-10-12 15:31:58
*/
import YJTObject from 'yj-object';

class contentData extends YJTObject {
  constructor () {
    const Fields = {
      // ID
      id: '',
      // 父Id
      pId: '',
      // 文件编码
      code: '',
      // 文件名称
      name: '',
      // 文件大小 单位byte
      size: {
        type: Number,
        default: 0
      },
      // 上传时间
      createTime: '',
      // 文件类型 0,文件，1文件夹
      fileType: {
        type: Number,
        default: 0
      },
      // 存储类型 0-物理存储 1-资源链接
      storeType: {
        type: Number,
        default: 0
      },
      // 附件类型    0,一般文件；1，主文件；2，附件文件
      attType: {
        type: Number,
        default: 0
      },
      // 附件大小
      attSize: {
        type: Number,
        default: 0
      },
      // 主文件id
      mainId: '',
      // 文件格式 文本 F100;视频  F300; 图片  F200;音频  F400; 动画  F500
      fileFormat: '',
      // 圆形图标 url
      iconUrl: '',
      // 方形图标 url
      squareUrl: ''
    };
    super(Fields);
  }

  get id () {
    return this._id;
  }

  set id (val) {
    this._id = val;
  }

  get pId () {
    return this._pId;
  }

  set pId (val) {
    this._pId = val;
  }

  get code () {
    return this._code;
  }

  set code (val) {
    this._code = val;
  }

  get name () {
    return this._name;
  }

  set name (val) {
    this._name = val;
  }

  get size () {
    return this._size;
  }

  set size (val) {
    this._size = val;
  }

  get createTime () {
    return this._createTime;
  }

  set createTime (val) {
    this._createTime = val;
  }

  get fileType () {
    return this._fileType;
  }

  set fileType (val) {
    this._fileType = val;
  }

  get storeType () {
    return this._storeType;
  }

  set storeType (val) {
    this._storeType = val;
  }

  get attType () {
    return this._attType;
  }

  set attType (val) {
    this._attType = val;
  }

  get attSize () {
    return this._attSize;
  }

  set attSize (val) {
    this._attSize = val;
  }

  get mainId () {
    return this._mainId;
  }

  set mainId (val) {
    this._mainId = val;
  }

  get fileFormat () {
    return this._fileFormat;
  }

  set fileFormat (val) {
    this._fileFormat = val;
  }

  get iconUrl () {
    return this._iconUrl;
  }

  set iconUrl (val) {
    this._iconUrl = val;
  }

  get squareUrl () {
    return this._squareUrl;
  }

  set squareUrl (val) {
    this._squareUrl = val;
  }
}
export default class CloudData extends YJTObject {
  constructor () {
    const Fields = {
      data: {
        type: Array,
        generics: contentData
      }
    };
    super(Fields);
  }

  get data () {
    return this._data;
  }

  set data (val) {
    this._data = val;
  }
}
